package com.atung.parking.service;

import com.atung.parking.config.result.ApiResult;
import com.atung.parking.config.result.PageInfoResponse;
import com.atung.parking.entity.BusSuperUser;
import com.atung.parking.request.query.QuerySuperUserRequest;
import com.atung.parking.request.save.SaveOrUpdateSuperUserRequest;
import com.atung.parking.request.save.UpdateSuperUserStateRequest;
import com.atung.parking.response.page.ApprovalRecordResponse;
import com.atung.parking.response.page.SimpleSuperUserResponse;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Administrator
 */
public interface SuperUserManegeService {
    ApiResult saveSuperUserService(SaveOrUpdateSuperUserRequest request, HttpServletRequest httpServletRequest);

    ApiResult updateSuperUserStateService(UpdateSuperUserStateRequest request);

    PageInfoResponse<BusSuperUser> querySuperUserListService(QuerySuperUserRequest request);

    BusSuperUser queryBusSuperByPhoneService(String phone);

    BusSuperUser queryBusSuperByIdService(Long id);

    List<SimpleSuperUserResponse> querySuperUserNameListService();

    void exportSuperUserListService(QuerySuperUserRequest request, HttpServletResponse httpServletResponse);

    List<ApprovalRecordResponse> queryApprovalSuperAdminListService(Long id);
}
